class Document extends GFB.Component {
  constructor() {
    super()
  }

  jump(){
    this.Refs["jump_6"].scrollIntoView()
  }
  renderItem(){
    let elm = ``
    for(let i=0;i<10;i++){
      elm += `<div ref="jump_${i}" style="height:200px">${i}</div>`
    }
    return elm
  }
  Render() {
    return `
      <div>
        <button on:click="jump">jump</button>
        ${this.renderItem()}
      </div>
    `
  }
}